var hover1=document.querySelectorAll(".box-top-top a")
var hover=document.querySelector(".box-top-top")
var hover2=document.querySelectorAll(".box-top-box-box")
var lunbo=document.querySelectorAll(".li-wei-box-top-lunbo a")
var as=document.querySelectorAll(".li-wei-box-top-right-top a")
var aa=document.querySelector(".li-wei-box-top-right-top")
var ul1=document.querySelector(".li-wei-box-top-right-ul-1")
var ul2=document.querySelector(".li-wei-box-top-right-ul-2")
hover.addEventListener("mouseover",function (event){
    if(event.target.localName=="a"){
        for(var i=0;i<hover2.length;i++){
            if(hover2[i]==10){
                i=9;
            }
            hover2[i].style.display="none"
            hover1[i].style=" background:#EFEFEF;color:rgb(51, 51, 51);"
        }
        var a=event.target.dataset.i;
        if(a==10){
            a=9;
        }
        hover2[a].style.display="block"
        hover1[a].style=" background: white;color:#ff6700;"
    }
})
var index=0;
setInterval(() => {
    for(var i=0;i<4;i++){
    lunbo[i].style="opacity:0";
    }
   index++;
   if(index==4){
       index=0;
   }
   lunbo[index].style="opacity:1";
}, 1000);
aa.onmouseover =function(e){
  for(var i=0;i<2;i++){
      ul1.style.display="none"
      ul2.style.display="none"
      as[i].classList.remove("li-wei-box-top-right-top-a")
  }
    if(e.target.dataset.i==0){
        ul1.style.display="block"
        as[0].classList.add("li-wei-box-top-right-top-a")
    }
    if(e.target.dataset.i==1){
        ul2.style.display="block"
        as[1].classList.add("li-wei-box-top-right-top-a")
    }
}
var liweibox2=document.querySelector(".li-wei-box-box2")
var data={"text":["网页游戏开服表","安卓软件下载","安卓游戏","皇室战争","海岛奇兵","iOS游戏排行榜","手机游戏","手游礼包","九游公会","轩辕剑6","我的世界","07073发号中心","安卓系统","决战平安京","快吧游戏","安卓游戏下载","百田圈圈","pes2013","52pk发号中心","刀塔传奇","网游论坛","UC社区","猴岛论坛","手游单机游戏","好玩的手机游戏","chinajoy","破解版手游","苹果游戏","梦幻西游手游","大话西游手游","手游交易平台","狂野飙车9","网站合作申请","安卓模拟器 ","手游排行榜","六皮手游网","小狗手游网","手游排行榜","卓不凡"]}
var sty=""
data.text.forEach(item=>{
    sty+= `<a href="">${item}</a>`
})
liweibox2.innerHTML=sty